package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface ProducerService {

	public Producer saveProducer(Producer producer);

	public Set<Producer> loadProducers();

	public Set<Producer> loadReferenceProducers(Set<Producer> producers);

	public Set<Producer> loadProducersByIdSet(Set<Integer> producersId);

	public Map<String, ?> loadProducerObjectReferencedSet(Producer producer);

	public Map<String, ?> loadProducerClassReferencedSet(Producer producer);

	public void deleteProducer(Producer producer);

	public void deleteProducers(Set<Integer> deleteProducersId);

	public List<Producer> findAllProducers(Integer startResult, Integer maxRows);

	public Producer findProducerByPrimaryKey(Integer id);

	public Integer countProducers();

	public Integer countProducers(CmiPagination page);

	public Integer countProducersByName(String queryName);

	public Integer countProducersByDetachedCriteria(CmiPagination page);

}
